package _base0to1;

/**
 * 1523. 在区间范围内统计奇数数目
 */
public class No1523 {
    public int countOdds(int low, int high) {
        return (high - low) / 2 + (low % 2 == 1 || high % 2 == 1 ? 1 : 0);
    }
}
